#############################
# Modulo:   torre.py
# Autore:   Enrico Trevisanello
# Data:     25/01/2011
# Versione: v0.2
#
# Descrizione: movimenti torre
#
# Storia:
# v0.2 25/01/2001 scritta funzione
# v0.1 18/01/2011 scritto codice iniziale
#############################

def possibletower(tower):
   possible=[tower+8,tower+16,tower+24,tower+32,tower+40,tower+48,tower+56,tower-8,tower-16,tower-24,tower-32,tower-40,tower-48,tower-56]
   if tower in T1:
     possible.append(tower-7,tower-6,tower-4,tower-2,tower-3,tower-5,tower-1)
   elif tower in T2:
      possible.append(tower+1,tower-6,tower-4,tower-2,tower-3,tower-5,tower-1)
   elif tower in T3:
      possible.append(tower+1,tower+2,tower-4,tower-2,tower-3,tower-5,tower-1)
   elif tower in T4:
      possible.append(tower+1,tower+2,tower+3,tower-2,tower-3,tower-4,tower-1)
   elif tower in T5:
      possible.append(tower+1,tower+2,tower+3,tower-2,tower-3,tower+4,tower-1)
   elif tower in T6:
      possible.append(tower+1,tower+2,tower+3,tower-2,tower+5,tower+4,tower-1)
   elif tower in T7:
      possible.append(tower+1,tower+2,tower+3,tower+6,tower+5,tower+4,tower-1)
   elif tower in T8:
      possible.append(tower+1,tower+2,tower+3,tower+4,tower+5,tower+6,tower+7)